package hys.wssoc.modules.info.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import hys.wssoc.common.utils.PageUtils;
import hys.wssoc.common.utils.Query;
import hys.wssoc.modules.info.dao.GdpDesDao;
import hys.wssoc.modules.info.entity.GdpDesEntity;
import hys.wssoc.modules.info.service.GdpDesService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("gdpDesService")
public class GdpDesServiceImpl extends ServiceImpl<GdpDesDao, GdpDesEntity> implements GdpDesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GdpDesEntity> page = this.page(
                new Query<GdpDesEntity>().getPage(params),
                new QueryWrapper<GdpDesEntity>()
        );

        return new PageUtils(page);
    }

}